﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Web.Components.Paging.PagedList<MShop.Core.Domain.Article>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content" class="ovfl">
        <div id="left" class="side fl">
            <%Html.RenderPartial("article/menu", ViewData["articlecatgories"]);%>
        </div>
        <div id="right" class="main fr">
         <div class="main_ct">      
                <ul class="list">
                    <% PagedList<Article> list = this.Model as PagedList<Article>;
                       int i = 1;
                         %>
                    <%foreach (var item in list)
                      { %>
                    <li>
                        <h2>
                           <%=i.ToString() %>.&nbsp; <%=Html.ActionLink(item.Title, "item","Article", new { id = item.Id },null)%>
                            <span class="date">
                                <%=item.Created.ToString("yyyy-MM-dd") %></span>
                        </h2>
                        <p class="info">
                            <%=item.SlashEncodeContent(200) %>
                        </p>
                    </li>
                    <%i++;
                      } %>
                </ul>
            </div>
         
            <div class="pageNav ovfl">
                <%=Html.Pager(Model.PageSize,Model.PageNumber,Model.TotalItemCount) %>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMeta" runat="server">
    <link type="text/css" rel="stylesheet" href="/css/userCenter.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
